<?php

/**
 * Site filter form.
 *
 * @package    sf_sandbox
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $
 */
class SiteFormFilter extends BaseSiteFormFilter
{
  public function configure()
  {
  	    $c = new Criteria();
  		$c->add(FolderPeer::USER_ID,sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' )); 
  	$this->setWidgets(array(
      'folder_id'               => new sfWidgetFormPropelChoice(array('model' => 'Folder', 'add_empty' => true, 'criteria'=>$c)),
      'distrib_id'              => new sfWidgetFormPropelChoice(array('model' => 'Distrib', 'add_empty' => true)),
    ));
  	
  	
  }
}
